﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using NasuTek.Shion.GenuineAdvantage;

namespace NasuTek.Shion
{
    public partial class About : Form
    {
        public About(string Name, string Hash)
        {
            InitializeComponent();
            label1.Text = String.Format(label1.Text, GetType().Assembly.GetName().Version.ToString());
            if (Name == "")
            {
                label3.Text = "Unactivated Shion";
            }
            else
            {
                label3.Text = String.Format(label3.Text, Name, Hash);
            }
            propertyGrid1.SelectedObject = HardwareKey.GetHardwareKey();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void About_Load(object sender, EventArgs e)
        {

        }

        private void button2_Click(object sender, EventArgs e)
        {
            throw new Exception("Testing Exception Handler");
        }
    }
}
